Skip to content

Conversation

@mtopo27
Copy link
Contributor

@mtopo27 mtopo27 commented Oct 17, 2025

DESCRIBE YOUR PR

adding docs for Size Analysis funcitonality

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline: Targeting week of 11/3
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

LEGAL BOILERPLATE

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

EXTRA RESOURCES

@vercel
Copy link

vercel bot commented Oct 17, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
sentry-docs Ready Ready Preview Comment Nov 5, 2025 10:11pm
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
develop-docs Ignored Ignored Preview Nov 5, 2025 10:11pm

@codeowner-assignment codeowner-assignment bot requested review from a team October 17, 2025 03:00
@codecov
Copy link

codecov bot commented Oct 17, 2025

Bundle Report

Changes will increase total bundle size by 91.87kB (0.39%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 13.0MB 91.87kB (0.71%) ⬆️
sentry-docs-client-array-push 10.16MB -6 bytes (-0.0%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.74MB -0.0%
../instrumentation.js -3 bytes 1.07MB -0.0%
9523.js -3 bytes 1.04MB -0.0%
../app/[[...path]]/page.js.nft.json 30.63kB 899.0kB 3.53%
../app/platform-redirect/page.js.nft.json 30.63kB 898.91kB 3.53%
../app/sitemap.xml/route.js.nft.json 30.63kB 896.14kB 3.54%
view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 882.71kB -0.0%
static/chunks/8321-*.js -3 bytes 425.87kB -0.0%
server/middleware-*.js -6.46kB 1.0kB -86.59%
server/middleware-*.js 6.46kB 7.46kB 645.5% ⚠️
static/xskfw1vZhEDK1oEEtEL4G/_buildManifest.js (New) 684 bytes 684 bytes 100.0% 🚀
static/xskfw1vZhEDK1oEEtEL4G/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/FebrnzMRvynxukXdhm_YV/_buildManifest.js (Deleted) -684 bytes 0 bytes -100.0% 🗑️
static/FebrnzMRvynxukXdhm_YV/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️

Copy link
Contributor

@runningcode runningcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! I gave it a thorough read.
I think it will be more straightforward if we stick to our assumptions.

For example, if we say "assume the sentry-cli is installed" and then we say "apply the SENTRY_ACCESS_TOKEN" env variable, this will probably be a unnecessary step because they are already authed, but if they authed some other way, they might think the sentry-cli requires env variable auth token ONLY. So I just went and made sure if we are assuming something to not repeat the instructions and just link to other existing instructions.

I will give it another pass after this is applied so that I can see it visually in the deployment.

## Set your auth token

```bash
export SENTRY_AUTH_TOKEN=your-token-here
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are already assuming they have the sentry-cli installed, I will assume they have this already set up.
Otherwise, there are many ways to auth the sentry-cli. The easiest is probably running sentry-cli login so otherwise we should link to both installation and configuration of the sentry-cli and remove this section.

Suggested change
export SENTRY_AUTH_TOKEN=your-token-here


```groovy {filename:build.gradle}
plugins {
id "io.sentry.android.gradle" version "6.0.0-alpha.4"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
id "io.sentry.android.gradle" version "6.0.0-alpha.4"
id "io.sentry.android.gradle" version "6.0.0-alpha.5"

Copy link
Member

@armcknight armcknight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that we should state an assumption for having sentry-cli installed or whatever else they need for it to work, like having environment variables set in CI.

To that point, it might make sense to split this into two sections: setup and local test, and then CI setup. It's a bit unclear why the second step talks about GitHub Actions env, and the the following step is to build the app locally.

It might flow better to do the setup and test it locally, then have a following section for setting it up for CI. This would have the benefit of getting them to first result faster in the first section.

@@ -0,0 +1,17 @@
### Sentry CLI (Any platform)

```bash
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just FYI in case you weren't aware, you can filter the content in includes by the current platform area being viewed, that way we don't display android instructions in Apple docs and vice-versa:

Suggested change
```bash
<PlatformSection supported={["apple"]}>
```bash

and same below for android. You'd have to split the code block into two different code blocks surrounded by these. I tried doing it all in one GH suggestion for you but the triple backticks are colliding so it's not possible and it doesn't render correctly here, but if you edit my comment you'll see the complete code, including the </PlatformSection>s:

<PlatformSection supported={["apple"]}>

export SENTRY_AUTH_TOKEN=your-token-here

# iOS
sentry-cli build upload app.xcarchive.zip \
  --org your-org \
  --project your-project \
  --build-configuration Release

<PlatformSection supported={["android"]}>

export SENTRY_AUTH_TOKEN=your-token-here

# Android
sentry-cli build upload app.aab \
  --org your-org \
  --project your-project \
  --build-configuration freeRelease

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh we should do something similar for build.gradle vs build.gradle.kts

```
## Build your app
## Building your app will trigger an upload
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we should say that building an APK or bundle will trigger the upload on CI with the configuration.

Comment on lines 11 to 13
id("io.sentry.android.gradle") version "6.0.0-alpha.5"
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let’s just remove it from the build.gradle.kts here too since we removed it from the build.gradle.


Set up the [GitHub integration](/product/size-analysis/github-integration/) to receive size change notifications as PR comments and status checks, making size considerations a natural part of your code review process.

## Supported Platforms
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we mention something about the hybrids (RN, Flutter) that they also work through the native uploaded bundles?

To upload builds you'll need:

1. A Sentry account with access to any [core plan](https://sentry.io/pricing/)
2. A Sentry auth token – [generate one here](https://sentry.sentry.io/settings/auth-tokens/) and set `SENTRY_AUTH_TOKEN` in your environment so the tools can pick it up automatically
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is our org, right? Shall we maybe embed a snippet where you can generate the auth token right in the docs, like here?

Google Chrome 2025-10-21 09 55 13

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good point but I think we should just link to the docs on authenticating the CLI since using an environment variable might not be the preferred way to authenticate. (There are 4 other ways to provide the token).

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

Copy link
Contributor

@coolguyzone coolguyzone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mtopo27 Thanks, this was a big lift! Added several small suggestions, but this looks good to go. Once it passes the typo/404 checks it looks good to merge.

Update the minimum required version from 6.0.0-alpha.6 to 6.0.0-beta1 in the size analysis upload documentation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@mtopo27 mtopo27 merged commit e76bb9c into master Nov 5, 2025
13 of 14 checks passed
@mtopo27 mtopo27 deleted the mtopo27/size-analysis-docs branch November 5, 2025 22:47
codyde added a commit that referenced this pull request Nov 9, 2025
…ntry/sentry-docs into docs/span-metrics-examples

* 'docs/span-metrics-examples' of https://github.com/getsentry/sentry-docs: (27 commits)
  Adding logs callout in relevant breadcrumbs docs. (#15432)
  docs(self-hosted): Troubleshooting guide to invalidate projectconfigs (#15377)
  docs(js): Add metrics page (#15353)
  fix encoding for minification (#15429)
  update instructions for string minification (#15421)
  getsentry/relay@938582a
  fix: typos in TanStack Start docs (#15425)
  feat: Add firebase docs integration (#15310)
  feat(develop-docs): add index and subpages for Telemetry Buffer (#15424)
  docs(integration): Update Linear Agent Docs  (#15420)
  feat(cloudflare): Fixed snippet to be cloudflare specific (#15369)
  chore(aws-lambda): Add troubleshooting section with known issue (#15414)
  getsentry/relay@5e23f1a
  docs(size-analysis): Align code boxes and remove vcsInfo links (#15418)
  feat(develop-docs): Add telemetry buffer page (#15411)
  Add Composer requirement to PHP platform guide (#15319)
  Updated link for version compatability (#15311)
  (WIP) Mtopo27/size analysis docs (#15256)
  Metrics Product Docs (#15375)
  ref(develop/spans): Replace `is_remote` with `is_segment` in Span Protocol (#15415)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants